from django.db import models


class Portal(models.Model):
    name = models.CharField(max_length=20)
    birth = models.DateField(null=True)
    company = models.IntegerField(null=True)  # 科研机构
    department = models.IntegerField(null=True)  # 专业领域
    phone = models.CharField(null=True, max_length=20)
    sex = models.CharField(null=True, max_length=2)  # M / F
    user_id = models.IntegerField(null=True)
    influence = models.DecimalField(null=True, max_digits=5, decimal_places=2)  # 影响力
    is_company = models.BooleanField(default=False)  # 是否是机构 (是的 它们用一个类)
